<%@page import="dto.employeesDTO"%>
<%@page import="vo.boardVO"%>
<%@page import="dto.boardDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="../css/board.css">
<script src = '../js/board.js'></script>
</head>
<body>
<jsp:useBean id="vo" class = 'vo.boardVO' scope='page'/>
<jsp:setProperty property="*" name="vo"/>
<p>
<%
	String m_id = (String)session.getAttribute("sessionMid");
	employeesDTO edto = new employeesDTO();
	boardDTO dto = new boardDTO();
	dto.setVo(vo);
	boardVO v = dto.View();
/* 	out.print("그룹번호 : " + v.getB_group());
	out.print("깊이 : " + v.getB_deep()); */
%>
<form name = 'hiddenFrm' method="post"> 
	<input type='hidden' name='b_number' value="<%=v.getB_number()%>"/>
	<input type="hidden" name="nowPage"	value="<%=v.getNowPage()%>"/>
	<input type="hidden" name='find' value='<%=v.getFind()%>'/>
 	<input type='hidden' name='b_category' value="<%=v.getB_category()%>"/>
 	<input type='hidden' name='m_id' value="<%=vo.getM_id()%>"/>
	<input type='hidden' name='e_number' value="<%=v.getE_number() %>"/>
	<input type='hidden' name='b_title' value="<%=v.getB_title() %>"/>
	<input type='hidden' name='b_fileUrl' value="<%=v.getB_fileUrl()%>"/>
	<input type='hidden' name='b_contents' value="<%=v.getB_contents() %>"/>
	<input type='hidden' name='b_group' value="<%=v.getB_group()%>"/>
	<input type='hidden' name='b_deep' value="<%=v.getB_deep()%>"/>
	
</form>
<form name = "h_inputFrm" method="post">
	<input type='hidden' name='b_group' value="<%=v.getB_group()%>"/>
	<input type='hidden' name='b_deep' value="<%=v.getB_deep()+1%>"/>
	<input type='hidden' name='b_category' value="<%=v.getB_category()%>"/>
	<input type='hidden' name='m_id' value="<%=vo.getM_id()%>"/>
	<input type='hidden' name='e_number' value="<%=vo.getE_number() %>"/>
	<input type='hidden' name='b_number' value="<%=v.getB_number()%>"/>
</form>

<img alt="" src="../images/m_title_view.png">
<hr>
	<div>
		<div class ='line' align="left"  id = 'board_view_title'>
			제&nbsp;&nbsp;목&nbsp;&nbsp;<font style="font-weight: bold;"><%=v.getB_title() %></font>
			<BR>
			글&nbsp;번호&nbsp;<%=v.getB_number() %> | 글 쓴 이&nbsp;<%=v.getE_name() %> | 조회수 <%=v.getB_viewNo()%>
		</div>
		
		<div class ='line' align="right">
			최종수정일&nbsp;&nbsp;<%=v.getB_modifyDate()%> | 작성일&nbsp;&nbsp;<%=v.getB_date() %>&nbsp;&nbsp;
		
		</div>		
	</div>		
	<%-- 	<%
		if(v.getB_image()!= null) {%>
   		<img src="../image/<%=v.getB_image()%>" alt="사진" width='200px' height='100px'/>
		<%} %> <br> --%>
		
	<div id = 'board_view_contents'>	
		<div align="right"><% if(v.getB_fileUrl()!= null){%>	
		다운로드 |  <a href="../images/<%=v.getB_fileUrl() %>" download="<%=v.getB_fileUrl() %>"> <font style="color: #075f8e;"><%=v.getB_fileUrl() %></font></a>
		<% }else{%>
		다운로드 | 첨부파일없음
		<% }%>
		</div>
		<BR>
		<%=v.getB_contents() %> <br>
		
		
<%-- 		<% if(v.getB_image()!= null){%>	
		이미지 : <%=v.getB_image() %> 
		<% }else{%>
		이미지 : 이미지없음
		<% }%> <br> --%>
	</div>	
<br>
<hr>
	<div class = 'bottommenu'  align="left">
	<%if(edto.my_number(m_id) == v.getE_number()){%>
	<div><input type ="image" src="../images/button_blue_modify.png"	value="수정" 	id="btnModify"></div>
	<div><input type ="image" src="../images/button_blue_delete.png" 	value="삭제" 		id="btnDelete"></div>
<!-- 	<div><input type ="button" 	value="새 글 작성" 	id="btnInput"></div> -->
	<%} %>
	<div align="right"><input type ="image" src="../images/button_blue_reply.png" 	value="답변달기" 	id="btnReply"></div>
	<div align="right"><input type ="image" src="../images/button_blue_list.png" 	value="목록으로" 	id="btnList"></div>
	</div>
	</p>
	
<!-- 	<div class='comment'align="center"> -->
<!-- 	<div><input type = "text" size = '10' name ='b_c_name' style="margin-bottom: 3px;" placeholder="아이디"/></div> -->
<!-- 	<div><input type = "text" size = '60' name ='b_c_content' style="margin-bottom: 3px;" placeholder="댓글 내용을 입력해주세요."/></div> -->
<!-- 	<div><input type = "button" value ='댓글등록' style="margin-bottom: 3px;"/></div><br/> -->
<!-- 	</div> -->

</body>
<script>viewInit();</script>
</html>

